//
//  InviteListCell.m
//  CBT
//
//  Created by Mr.Zhang on 2019/1/11.
//  Copyright © 2019 Mr.Zhang. All rights reserved.
//

#import "InviteListCell.h"

@interface InviteListCell()

@property (weak, nonatomic) IBOutlet UILabel *userIDLabel;
@property (weak, nonatomic) IBOutlet UILabel *cbtLabel;
@property (weak, nonatomic) IBOutlet UILabel *timeLabel;


@end

@implementation InviteListCell

- (void)awakeFromNib {
    [super awakeFromNib];
}

-(void)setModel:(InviteItemListModel *)model
{
    self.userIDLabel.text = model.userId;
    self.cbtLabel.text    = [NSString stringWithFormat:@"+%@PC",model.amount];
    self.timeLabel.text   = [NSString getCBTShowDateYearMonthWithTime:[model.rewardDate longLongValue]];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}

@end
